<?php 
	$id = $_GET['id'];
	$dsn = "mysql:host=127.0.0.1;dbname=07c;charset=utf8";
	$pdo = new PDO($dsn,'root','root');
	$sql = "select * from excel where id = '$id'";
	$st = $pdo->query($sql);
	$data = $st->fetch(PDO::FETCH_ASSOC);	
 ?>
 <!DOCTYPE html>
 <html lang="en">
 <head>
 	<meta charset="UTF-8">
 	<title>Document</title>
 </head>
 <body>
 	<form action="sven_do.php" method="post">
 	<input type="hidden" name="id" value="<?php echo $data['id']?>">
 		<table>
 			<tr>
 				<td>名称</td>
 				<td><input type="text" name="name" value="<?php echo $data['name']?>"></td>
 			</tr>
 			<tr>
 				<td>密码</td>
 				<td><input type="password" name="pwd" value="<?php echo $data['pwd']?>"></td>
 			</tr>
 			<tr>
 				<td>确认密码</td>
 				<td><input type="password" name="rpwd" value="<?php echo $data['rpwd']?>"></td>
 			</tr>
 			<tr>
 				<td>时间</td>
 				<td><input type="text" name="shijian" value="<?php echo $data['shijian']?>"></td>
 			</tr>
 			<tr>
 				<td><input type="submit" value="修改"></td>
 			</tr>
 		</table>
 	</form>
 </body>
 </html>